package org.example.video.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.commons.entity.Barrage;
import org.example.video.mapper.BarrageMapper;
import org.example.video.service.BarrageService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: authority-v3.0.7
 * @ClassName:BarrageServiceImpl
 * @description: 视频弹幕 service实现类
 * @author:dyy
 * @Version 3.0
 **/

@Service
public class BarrageServiceImpl extends ServiceImpl<BarrageMapper, Barrage> implements BarrageService {
    @Override
    public List<Barrage> getByVideoId(Long vid) {
        return this.baseMapper.findByVideoId(vid);
    }
}
